<?php

/*
Admin Main (admin.php)
*/

$page_title = "Admin Main Page";
$rank_check = 7;
include "../header.inc.php";

$smallPrice = 49.99;
$basicPrice = 79.99;
$superPrice = 99.99;
$ultraPrice = 149.99;

if ($getGame[package] == 1) { $negativePrice = $smallPrice; $package = "Small"; }
if ($getGame[package] == 2) { $negativePrice = $basicPrice; $package = "Basic"; }
if ($getGame[package] == 3) { $negativePrice = $superPrice; $package = "Super"; }
if ($getGame[package] == 4) { $negativePrice = $ultraPrice; $package = "Ultra"; }
if ($getGame[package] == 5) { $negativePrice = 0; $package = "Free"; }

$smallPrice = 49.99 - $negativePrice;
$basicPrice = 79.99 - $negativePrice;
$superPrice = 99.99 - $negativePrice;
$ultraPrice = 149.99 - $negativePrice;

if ($cheapPrice < 0) { $cheapPrice = 0; }
if ($smallPrice < 0) { $smallPrice = 0; }
if ($basicPrice < 0) { $basicPrice = 0; }
if ($superPrice < 0) { $superPrice = 0; }
if ($ultraPrice < 0) { $ultraPrice = 0; }

$credit = $getGame[credit] / 100;

print "$openHTML";

ECHO <<<END

<center><b><font size=+1 color=green>OPG Credit - \$$credit</font></b></center>

<p>You currently have a $package Package. Below are the prices to upgrade to each package.</p>

<p>
<b>Small Package</b>: \$$smallPrice (<a href=admin_upgrade_game2.php?game=$game&upgradeto=1>upgrade</a>)<br>
<b>Basic Package</b>: \$$basicPrice (<a href=admin_upgrade_game2.php?game=$game&upgradeto=2>upgrade</a>)<br>
<b>Super Package</b>: \$$superPrice (<a href=admin_upgrade_game2.php?game=$game&upgradeto=3>upgrade</a>)<br>
<b>Ultra Package</b>: \$$ultraPrice (<a href=admin_upgrade_game2.php?game=$game&upgradeto=4>upgrade</a>)
</p>

END;

print "$closeHTML";
?>
